Fix some valac/gcc warnings
Fix build for vala 0.16