resolve some gcc warnings

test if ok