Linux gcc 4.8 now builds clean with -Wcast-qual flag.