Fixing compile error on OS X