Fixed gcc's warnings