fix Linux compile errors