fixed a crash on WinCE; code cleanup
Merge branch 'develop' of https://github.com/pocoproject/poco into develop