Fix 'conky-1.8.1 does not build with curl-7.21.7' (sf.net #3383906)

In the new version of curl, types.h no longer exists. I just removed the offending include as
is seems to be unnecessary.

bug reported by billie80.
Explained that mixer requires OSS and added the device list.
Support imap passwords with strange characters (sf.net #3402448)

conky now sends the password using the length + string format, which should not need any quoting
of special characters. Hopefully, we won't find a server which does not support this encoding.

This also fixes a bug which prevented the password from being entered from the console.

bug reported by Brent
Use monotonic time when calculating the update interval (fixes sf.net #2970255)

when the system clock is moved backwards, the update interval would be calculated incorrectly. If
it was moved back far enough, conky would use 100% cpu. Conky now uses monotonic clock to prevent
this. If it turns out to be unsupported on some platform, an appropriate fallback can be added.

problem reported by norsetto
Revert "Fix short_units for below kilo values."

I revert this, because it breaks padding for numbers < 1000, which causes ugly text shifts when
numbers change from <1000 to >1000. If someone disagrees with this, we can talk about it in
 #conky. I asked before doing this, but noone seemed to care.

This "fixes" bug #3389641 on sf.net, reported by sakalisc.

This reverts commit c9cf08d9e936544209a5b2baf0914232f10359ba.

Conflicts:

	src/conky.cc
Fix quoting in text2c.sh

it failed when the build dir contained spaces
Fix a crash on exit when using curl

The problem was that the callback thread is destroyed only in the destructor of the callback_base
class (which is called after the destructor of the derived classes). This means that the thread
is running even when it's object is partly destroyed, which can cause segfaults, race conditions
and other nasty problems.

I've fixed it so that the thread is destroyed before the underlying object's destructor is
called.
Fix linking error: clock_gettime not found

I decided to reimplement AC_SEARCH_LIB from autotools in the process, as I consider it a very
nifty feature.
Emulate O_CLOEXEC on systems that don't support it
c++ify linux.cc:is_disk()
fix compilation of freebsd.cc
mem_vsize and mem_res need to be 64 bit (sf.net #3366272)

if process allocated 4GiB or more of ram then {top mem_vsize} did not report correct number

Signed-off-by: Pavel Labath <pavelo@centrum.sk>
Use %llu instead of %Lu in the previous commit
Remove SECRIT_MULTILINE_CHAR hack

Noone knows what it was supposed to do and removing it seems to fix sf.net #3411610 (and probably
a few others). If it turns out it was doing something useful, we will try to reintroduce it
without breaking other things.
Add uid to "top" output (sf.net #3178916)

original patch submitted by Thomas Wiegner, I added support for printing of raw uids.
Remove 'top_field' enum since it is unused
Cmus support added to conky
Don't abort when config references a non-existant hwmon file

this sort of fixes sf.net #3306538. The person there correctly tested for the existance of the
file with $if_existing, but the problem is we run the callbacks regardless of the conditional
tests.
Ignore whitespace in parameters of $pid_* (sf.net #3423766)

This enables one to pass the output of $top to these variables. It was not possible before,
because $top pads the pids with spaces.
Support IMAP responses which arrive fragmented (sf.net #3182411)

bug reported by Richard De Boer