load libportaudio correctly on linux; small fixes