Use ICU_CXXFLAGS, not ICU_CFLAGS. This keeps us from importing the dread -Wshadow, as well as spurious -Wmissing-prototypes.
Add some function declarations to get rid of warnings caused by -Wmissing-prototypes.