Activated all compiler warnings (-Wall) and fixed all warnings