Several fixes for the Vala bindings