Make MaxSrcs const as appropriate.
Add -Wextra to compile flags, and fix resulting problems.