Fixes compilation error in OSX