Created .gitignore.
Made CuRL dependencies depend on presence of CuRL.
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.
Autogen >2.0 will have subdir-objects turned on by default. Starting from >=1.14,
detecting subdir-objects will cause a compile warning. The subdir-objects
causes a compile failure, so turning off the subdir-objects warning
instead.

See https://github.com/sugarlabs/automake/blob/master/PLANS/subdir-objects.txt.