changes for osx packaging and 3rdparty stuff