package portmidi: fix test program and enable mingw-w64 builds