Merge pull request #1244 from dottedmag/cleanups/fix-globals

Cleanups/fix globals
Redmine#3905: acceptance test for perms on a directory with a trailing slash
Merge pull request #1247 from tzz/test/3905-perms-on-directory-with-trailing-slash

Redmine#3905: acceptance test for perms on a directory with a trailing slash
Fix incorrect Log statement.
Fix incorrect function name in Solaris 9 code.
Don't rely on _INT64_TYPE define, it is not available everywhere.

unint64_t should be pretty safe to assume is available.
Implement log2() which is missing on Solaris 9.
Copy args in FnCallNew, constify ExpandFnCall
Constify ExpandPrivateRval
Constify CompareRval, CompareRlist
Constify GetListReferenceArgument
Merge remote-tracking branch 'dottedmag/cleanups/fulltextmatch-removal'
cf-promises no longer checks licenses
Add a compatibility function for timegm(3)
Get rid of VYEAR/VMONTH/VDAY/VSHIFT, use CFSTARTTIME instead
No need to cast time_t to long and back