fixed compile issues on Linux