Added additional compiler flags & fixed several warnings.
Added missing break on switch statement.