Fixed comilation issues on Linux