Fix "Redeclaration with no linkage" on SmartOS
Use Solaris Threads on Solaris
Merge pull request #15 from enmand/master

Fixes for illumos/SmartOS
Merge pull request #16 from binki/master

mingw fixes: drop gettimeofday(), fix bitrot caused by untested commits in cacheline.c, fix MOWGLI_OS_WIN mispelled as MOWGLI_OS_WINDOWS
Fix project and issue tracker URIs in README to match JIRA disappearing and http://atheme.org/ URI prettification.