Implement timegm. Taken from rtmpd.
Remove names from unused parameters.

http://stackoverflow.com/questions/1905228/supress-unused-variable-warning-in-c-compiler-bug-or-code-bug
Added code for WIN32 version of mkstemp.
Added `subdir-objects` to automake options. This resolves a autogen warning
that is triggered in automake >=1.14.