Update to build correctly on Sun WTK and Nokia SDK

UI, IO and MIDP Ports build correctly with Sun SDK on Linux and Windows,
and with Nokia SDK on Windows.