Remove use of SUBST_CMD, no longer needed. Remove test code, as tests now have dependencies not in ports. Remove cross compiling support as mingw was removed last year. Add patch to remove chown/chgrp use when not running as root, similar to how Ruby is patched.