Merge Predef library to release.

[SVN r85618]
Merge of various bug fixes dealing with mis-detection of BSD on OSX. Fix some documentation typos.

[SVN r86315]