Fix compilation on PyPy.
Build C++ code at install time rather than first import.