Enabled -Wall and removed all appearing warnings