Fixed build in OSX.