Fixed up compile errors on linux