fixes for WinCE6