This function extends the current namespace with the definitions in the teachpack, if any teachpack is set. If not, it does nothing.