At present, the build system assumes that the Unix archiv utility 'ar' will always be present in PATH, but this might not be true if a separate toolchain is being used. This patch makes the build system a bit more cross-compile capable.