Fix some build warnings.
Add -Werror to ensure clean new code. No build errors now!