ticket:9101: data builder: optimize(), and copy base mappings when they or new mapping have context

git-svn-id: http://source.icu-project.org/repos/icu/icu@33753 251d0590-4201-4cf1-90de-194747b24ca1
ticket:10131: Attempt to fix broken build on AIX/solaris.

git-svn-id: http://source.icu-project.org/repos/icu/icu@33755 251d0590-4201-4cf1-90de-194747b24ca1