fix compile errors on linux