use argument --with-static-portmidi instead of --with-pmidi-platform
__APPLE__ specific code has been removed and is probably not needed