Added -Wall to default compiler options. Fixed warnings