Fix the build method for macaque