Fix Linux USB bug and compile issues on Centos.