Add compatibility for Solaris apis
Switched to #defines with appropriate casing
/usr/local is not used by Solaris
Oops, broke consistency
Merge pull request #113 from Hamcha/master

(Preliminary) Solaris/SunOS support