Fix gcc warnings