add ld patching for new build