Added -Wall option. Fixed errors related to -Wall.