Fix compilation warning for OSX/IOS