some fixs to build on linux