Build first the library before packaging

This fixes the import error in Python 3.4 as some of the modules are not
visible to the import system.