Fix all warnings

Nothing special, just makes it compile without warnings.
Also, i believe the obs_data_item_set warnings were an actual bug, and not just warnings.