diff --git a/dynamic.c b/dynamic.c
index bed42e2370..91394d9509 100644
--- a/dynamic.c
+++ b/dynamic.c
@@ -390,8 +390,11 @@ bool libretro_get_system_info(const char *path,
**/
bool init_libretro_sym_custom(enum rarch_core_type type, struct retro_core_t *current_core, const char *lib_path, dylib_t *lib_handle_p)
{
+#ifdef HAVE_DYNAMIC
/* the library handle for use with the SYMBOL macro */
dylib_t lib_handle_local;
+#endif
+
switch (type)
{
case CORE_TYPE_PLAIN:
diff --git a/griffin/griffin.c b/griffin/griffin.c
index c28156f020..a52531ae9a 100644
--- a/griffin/griffin.c
+++ b/griffin/griffin.c
@@ -13,15 +13,19 @@
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see .
*/
+#include
#define CINTERFACE
+
+#if !defined(__WINRT__)
#define HAVE_IBXM 1
+#endif
#if defined(HAVE_ZLIB) || defined(HAVE_7ZIP)
#define HAVE_COMPRESSION 1
#endif
-#if _MSC_VER
+#if _MSC_VER && !defined(__WINRT__)
#include "../libretro-common/compat/compat_snprintf.c"
#endif
@@ -907,7 +911,7 @@ FRONTEND
#include "../frontend/frontend_driver.c"
-#if defined(_WIN32) && !defined(_XBOX)
+#if defined(_WIN32) && !defined(_XBOX) && !defined(__WINRT__)
#include "../frontend/drivers/platform_win32.c"
#endif
@@ -952,7 +956,7 @@ UI
#include "../ui/drivers/null/ui_null_msg_window.c"
#include "../ui/drivers/null/ui_null_application.c"
-#if defined(_WIN32) && !defined(_XBOX)
+#if defined(_WIN32) && !defined(_XBOX) && !defined(__WINRT__)
#include "../ui/drivers/ui_win32.c"
#include "../ui/drivers/win32/ui_win32_window.c"
#include "../ui/drivers/win32/ui_win32_browser_window.c"