Fix static / friend usage in portaudio engine