some temporary compilation changes for OSX