[Toolkit] Fix compilation on Win8/WP8