Fix compability problems for Linux.