fixed compiler warnings on linux