Add EXTFLAGS funtion to capstring generator.