Fixed the unpack build for OSX.