[FIX] added missing const
[FIX] added clang detection under Mac OS X