Use the libdynd_init function, avoid global static vars
Remove debug prints, change onexit to atexit
Merge pull request #126 from mwiebe/init_teardown

Use the libdynd_init function, avoid global static vars