changes to allow build to function on MacOS 10.9 Mavericks