Fix for timeval on OSX.
Fix missing header on OSX.
Fix pnUUID linking on OSX. Closes #451.
Rename UniChar to plUniChar to avoid conflict on OSX.

OSX defines a UniChar type as part of the OS headers.