Updated build flags. Added warnings.
Fixed warnings.