Only add -Wno-unused-local-typedefs for gcc