Makefile: attempt to fix build errors using gcc-4.7 or newer.