re-enable acceptance tests now they are passing

(cherry picked from commit f73fbcacf77089a6987a177179203cf2b451187b)

Conflicts:
	tests/acceptance/05_processes/01_matching/004.cf
	tests/acceptance/05_processes/01_matching/006.cf
cf-upgrade's exit code should indicate successful installation or failure.

(cherry picked from commit ee7b8a5d1bb2dd1e720a3505659a9af0f06aea6c)
Failure should be returned when install didn't take place and restoration of old version was successful.

(cherry picked from commit 024ef5ca9ac63e3a3f446b7248eb37bf0a807ba0)
Code deduplication.

(cherry picked from commit f66993b6808261620e272b0b828878005612adef)
Write more to the console.

(cherry picked from commit 1a1f55ea576ea816b50c548ebebb66609cbdace5)
Globals with capital letters.

(cherry picked from commit c18dcd366fcdcb10c7894e03af94984e573d546e)
Make cf-upgrade more verbose by default.

(cherry picked from commit c6f8b2b629aaa90d9a09dd4a474e73366ba15956)
S_IROTH is undefined on windows, include our platform.h.

(cherry picked from commit cd4d8f6426d95930993ed8052ec16fd8f07571e8)
S_IROTH undefined in windoes in log.c.

(cherry picked from commit b387cfbfaaf8e000e72949ea965a495da1ba17d7)
Log messages from reports promises to event log on Windows.

Use portable LogToSystemLog function to that end.

Fixes Redmine #6315

(cherry picked from commit a5d5ddccd2372e8e846844521181ad6fea6fbdcb)
Disable failing unit test on Solaris.

(cherry picked from commit 376b9764bb8bda881eaf472e15120d455fb8cc3c)
Use more compatible sed arguments.

"sed -r" is not supported on Solaris 9 (and probably others).

(cherry picked from commit 77675433e33b00af3a801818b1408e20eec98906)
Revert recent dependency on libutils, use a simple ifdef instead

Proper dependency tracking in our Makefiles needs re-organisation of
configure.ac and all makefiles, to be done.

(cherry picked from commit 2f8eea3fb9888fae1cb8ad1ffa454b0cd77f69b3)
disable two failing unit tests for aix

(cherry picked from commit 4d232a037c7f50ed830ec23ec6d8857246d0dd69)
Fix build.

(cherry picked from commit 919aa31131fd93adc47ef10122f33defbd87624d)
Fix strftime function (missing printf specifier).

(cherry picked from commit 46ba66dfd2c0f28bd9de537111477e0155a82098)
Enable strftime '%F' hack on Solaris 9, which doesn't have it.

(cherry picked from commit e0687ce15cc7fd25937ada7f250af1a4f9ff6004)
Suppress process test on Solaris 9.

(cherry picked from commit c0111d0f6e9f1d9f76124e9b56027255faef1733)
Avoid malloc/free - use C99 to allocate variable-length array on stack.

Follow-up on commit a5d5ddccd2372e8e846844521181ad6fea6fbdcb

(cherry picked from commit bf88075fe007cec277ac95b17762c0b192772539)
Merge remote-tracking branch 'upstream/3.6.x' into 3.6.x