fixup for compiling on OSX