Deal with "type qualifiers ignored" compile warnings on Linux