Merge pull request #205 from eile/master

CommonLibrary:Allow global static/shared setting
Use C++11 std and stdlib on OS X >=10.9, C++03 on <=10.8

This is the only way to get a build. Trust me.