Merge pull request #3 from erikd/master

Bunch of fixes.
configure.ac: don't die if alsa, pulse not found
Revert "Purge old tdb sources."

This reverts commit 82fa516c4482a90cb23e520c11a03765139ec5ef.
mad: update use of g_mutex
src/preferences.c : Fix compiler warnings.