Fixed several compiler warnings
Added -Wall to compiler options