Fixes compilation in OSX