Fixed compilation in OSX Mavericks