Fixing compile error on Mac