Fixed build errors on Linux