Solaris does not provide setenv(), use putenv() instead.
Mark setenv() as deprecated, putenv() is a more portable alternative.
Fix Solaris missing definition.
Always include platform.h first in tests, by always including test.h first.
Removed shady piece of code that caused linking error on Solaris 9.
Fix warning about signed char array subscript on Solaris.
Fix warnings on Solaris by including platform.h first.
Constified username, fixed some warnings.
Fix Warning about %o expecting unsigned int.
file_writer_test was refactored.

The reason is that previously we were redefining libc's fwrite() to
change the output location of WriterWrite(). However, on Solaris 9
fwrite() is also used in our printf() replacement which is called for
other reasons in the tests, so random crashes/behaviour was happening.

The test is now including the writer.c source file directly, which
overrides fwrite() only if #ifdef CFENGINE_TEST.
On Solaris uptime was wrong, fix it to read the proper kstat statistic.
Added two ways to compute uptime on UNIX.

Tested on Linux and Solaris 9.
Fix typo, it existed there a long time causing configure test to always fail.
Fix dependencies for sysinfo_test.
map_test is overly slow on old platforms, speedup by avoid calling memcpy a million times.
Print uptime in sysinfo_test so that it can be verified visually.
Significantly speed up iteration test in map_test.

Basically we avoid creating a huge StringMap again, since creating takes
a long time and we've already done it before.
Print HashMap statistics in an attempt to figure out the slowness.
Set GCC-specific flags before most configure checks.

This fixes detection of isfinite() and other C99 functions in Solaris 10
and other platforms.
Remove AM_PROG_CC_C_O, deprecated since automake 1.14.