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

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