packaging: add '-Wold-style-cast' command-line option to CXXFLAGS