Rewrite ICU detection code with in-house macros

At least works for cross-compiling now...
1 file changed