Fix linux compatibility