Look at NI instead of PRI in ps output on Linux

The PRI field is the Linux kernel scheduling priority which is
different from the niceness of a process (which is what a system
adminitrator and policy-writer is likely to want to select upon). This
value is almost always larger than 20, so it isn't selectable if the
defined range per the documentation is -20,+20 anyway.
Out-of-tree builds broke again, fix.
Fix: display file mode in octal, not decimal
Fix broken compilation under BSD-like systems
De-EvalContext-ify and de-Attribute-ize CheckMeasureSanity
Remove unused variable declaration
Fixed '.' and '-' not being accepted by a commands module.

Fixes issue #2384.
Solaris defines minor() and major() in sys/mkdev.h
remove superfluous cfengine:: class from example report
Do an optimization/issue-correcting step during opening the database

Optimization step detects broken databases, so it lowers chances of agents
hanging forever or segfaulting inside libtokyocabinet.
Don't provoke database corruption by mixing read/write and cursor operations
Fix restarting of standard_services with invalid class characters
Closes https://cfengine.com/dev/issues/2404
Merge pull request #490 from nickanderson/bugfix/masterfiles/libraries/cfengine_stdlib/canonify_standard_service_restart_context_restriction

cfengine_stdlib: Fix restarting of standard_services with invalid class characters
Merge pull request #488 from kacfengine/issue-2384

Fixed '.' and '-' not being accepted by a commands module.
Fixed issue with package management and warn.

Previously action_policy => warn would have no effect, and CFEngine
would go ahead and fix the problem anyway.

Fixes issue #1831.
Merge pull request #487 from kacfengine/issue-1831

Fixed issue with package management and warn.
Automatically handle holes in CopyRegularFileDisk

This will allow to remove makeholes from Promise struct
Get rid of Promise.makeholes, file copying may do it automatically
Add acceptance test for dry-run option in packages promises (Redmine #1831)
Allow empty bundles (Redmine #2411)