Fix the portable and ClickOnce build