fix build on older versions of mac osx, thanks twisted!