Fix compiler warnings on linux