attempt to improve build on the mac