Fix gcc compile issue in ReaderWriterWMS