Fixing a small bug when creating the window

A pointer to the instance of WindowsPlatform had to be passed (last
parameter)through the CreateWindow method, so that it could be retrieved
when processing Windows messages
Adding the Platform task to the kernel

Adding the Platform task to the kernel