Some modifications, mainly to make compilation work with current portaudio and matlab versions

Compilation for JACK and OSS sound API is working. ALSA produces some compiler errors I could not understand... I will try to fix these when I have some free time.