fix: libc++ is more picky when it comes to const methods
Fix: provide a cast operator to unisgned char to fix libc++ compile issue
fix: Eigen doesn't compile in clang without increasing template depth
Merge pull request #362 from fran6co/mac-10.9-fixes

[rebase] fixes to make it work on mac os x 10.9 mavericks