handle broken p2sh. see 2326a36b17f8084b4f6d364ed52da8b026a0c79e4c0bf08983353b9e395ed3c8.
MACOSX_DEPLOYMENT_TARGET: need to set this to get -rpath.