Autodetect pulseaudio

This small patch autodetects the presence of pulseaudio on linux and enables/disables this feature.