Added -Wall option, fixed some compiler warnings