cfengine_stdlib.cf: abstract apt-get, aptitude, and dpkg calls to always have the right Debian environment, especially the PATH
Fix for HPUX

We have a stub for sendto in logging_test.c. In HPUX this function
returns int instead of ssize_t, therefore we need a separate stub
for HPUX.

Removing DEBUG definition

This was added to try to compensate for the missing symbol when compiling on HPUX.
I added the real symbol instead by including cf3globals.c to the compilation stage.

Include cf3globals.c only when compiling for HPUX
New stub for Solaris

Solaris people in their infinite wisdom decided to play trickery on
the symbols. Therefore we require a new stub for sendto on Solaris.
Added a check for rval function closing parenthesis + 2 unit tests
Merge pull request #583 from cduclos/master

Fixes for HPUX and Solaris
Merge pull request #584 from basvandervlies/rval_function_forgot_cp

Added a check for rval function closing parenthesis + 2 unit tests
Add sort function for slists
Merge pull request #586 from sigurdteigen/master

Sort function
Do not install body if syntax is not found
Add function reverse
Merge pull request #587 from sigurdteigen/master

reverse function
Add SeqShuffle
Add function shuffle(2)
Merge pull request #590 from sigurdteigen/master

function shuffle(2)
Remove generic_agent:WarnAboutDeprecatedFeatures

This is can now be nicely handled by SyntaxStatus warnings
Remove unused global AUDIT
Remove global PUBKEY_DIGEST
Deglobalize ROTATED to files_lib
Deglobalize CFLAST to locks
Deglobalize CFLOG to locks