Fixed linux compile errors