Fixing gcc warnings