modified build to work on os x