Some tiny cast fixes for gcc.