added Mac OS X build support