Fix warning when compiling in OS X