make build work on mac