Add ar script support for Linux builds