Add --disable-threads option for configure

This allows users of OS X 10.9 to run nghttpd (and friends) with
threading entirely disabled, to avoid crashes on startup related to
std::mutex.

This is the commits from #34 squashed into one commit, and rebased onto master as of about 30 seconds ago :)