Fixed lot of trivial warnings