Added window icon API and Win32 implementation.
Cleanup.