Fix compiler error
final fix compiler error on mac (qt5)
add some mixing includes for mac (qt5) and clang
add backward compatibility and c++ style cast
Merge pull request #104 from danlin/master

Fix some compiler errors on OS X 10.9 with Qt5.2.0-rc1