Isn't EL6 still on 2.6.32, which is far away from the 3.10 that WireGuard requires? In that case you'll be running with a custom kernel. Why can't you just update your gcc from the same external repo, at the same time? I just backported to EL7.3 and felt nauseous the whole time. Not sure I have the stomach for EL6...