Fixes build warnings with GtkChild attribute (vala#1121 (closed)) and a warning introduced by !652 (merged).