fixing gcc warnings