1.6.fix warnings

The code compiles now with -w Ae and -warn-error A.
Hmm, maybe we should try to reinstate this test? Not sure what exactly would need to be done though, haven't looked in detail.