Silence -Wold-style-cast to build with Apple clang 4.0,
Avoiding to use C++ style casts to keep backward compatibility.
Specify -Wno-old-style-cast only for C++.
Merge pull request #433 from umireon/disable-woldstylecast

Silence -Wold-style-cast to build with Apple clang 4.0