fixed some compile errors on Linux