fix build for machine arch