Automatically link with required win32 libraries

Uses the new Cargo build commands to automatically link with win32 libraries.

~~Not tested on Windows yet because Cargo nightlies are not up-to-date.~~

Note that this is quite hacky and should be replaced in the future by a library dedicated to the win32 API.