Implement -Wold-style-cast

Based on a patch by Ondřej Hošek!