fix osx compiling test