minor build changes to support OSX