Fix OSX compile issue