Fix build issue on OSX

Fix build issue on OS X