Revert PortAudioSystem to core version
Reapply 'Metaswith changes to date'
Reapply patch from trac #133 and add NPE check to avoid JVM crash