Change InitLibrary to use InitGVarFuncsFromTable

This simplifies the code, and also avoids usage of the
low level NewFunctionC call.
Merge pull request #1 from fingolfin/patch-1

Change InitLibrary to use InitGVarFuncsFromTable
(Vielen Dank Max)