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

Avoiding to use C++ style casts to keep backward compatibility.