Fix gcc compiler warngings.