Always include platform.h first in tests, by always including test.h first.
Don't use the deprecated API of RSA_generate_key.
tls_generic_test is now passing on Solaris.
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 SIGBUS on Solaris.
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.