make build OK on OS X