makefiles generated for mac externs fixed to properly copy the binary