Resolve compilation issues in js-tests for WP8