fixed build to work on mac.