Fixed Windows theme embedding errors. Issue #1581. Thanks @Michi23