Get compile working correctly on darwin