Fix gcc compiler warning about comparing unsigned and signed.
Silence warnings about casting away const qualifiers, as several are raised by
wxWidgets headers.