turn on -Werror and fix resulting errors

Is there an -Wno-frame-larger-than option?