Support for windows universal

based on Cheesebaron's work!