Fix mac osx compiler error