cfengine_stdlib: add /usr/bin/perl to paths bundle
Fix windows build. The statbuf.st_mode in windows contains only a limited number of bitmask constants:
http://msdn.microsoft.com/en-us/library/aa273367(v=vs.60).aspx
More Windows fixes:
- major() and minor() undefined
- statbuf.st_dev holds the drive number on Windows
Fix broken compilation under BSD-like systems
De-EvalContext-ify and de-Attribute-ize CheckMeasureSanity
Remove unused variable declaration
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
Adding getifaddrs() fallback to collect MAC addresses on BSD systems