Fix all compiler warnings
Some refactoring to be able to use G_ADD_PRIVATE() instead of the deprecated way to set private data on a GObject.
Also, fix warnings in dbind.
The code builds without warnings now.
This MR builds upon !61 (merged), but please tell me if you would like me to anchor it separately.