fixed linux compile errors