refactoring: separate win32-impl. of platform-specific code from platform interface.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>