Fix linux compile errors