Add -Wall option and fix some warnings