Update to the latest available centos kernel in the latest available centos release, and then after install WireGuard. If you're facing problems then, email a compilation log.