Fix some minor gcc warnings