OSX buildfix. Clang is NOT happy with this source code overall though.