fix a compiler error on OS X