Fix some gcc warnings