Only use -Wno-unused-local-typedefs for GCC >= 4.8