fixed issues to compile with linux