diff --git a/setup.py b/setup.py
index 3c36da870288fd240c1abfe27e055a2fa33cbcc5..16c2056b7505054d545e796bb49c26d7b1e18b6f 100644
--- a/setup.py
+++ b/setup.py
@@ -88,7 +88,7 @@ EXTENSION_INCLUDE_DIRECTORIES = (
     (PYTHON_STEM,) + CORE_INCLUDE + BORINGSSL_INCLUDE + ZLIB_INCLUDE)
 
 EXTENSION_LIBRARIES = ('m',)
-if not "darwin" in sys.platform and not "win32" in sys.platform:
+if "linux" in sys.platform:
     EXTENSION_LIBRARIES += ('rt',)
 
 DEFINE_MACROS = (('OPENSSL_NO_ASM', 1), ('_WIN32_WINNT', 0x600))
diff --git a/src/python/grpcio/grpc/_cython/loader.c b/src/python/grpcio/grpc/_cython/loader.c
index bd862282082c8589552d6d30fbf25a449be86ebb..f234c4af9647717f52c96ed9638b604d1f0a5c9f 100644
--- a/src/python/grpcio/grpc/_cython/loader.c
+++ b/src/python/grpcio/grpc/_cython/loader.c
@@ -31,6 +31,8 @@
  *
  */
 
+#include "loader.h"
+
 #if GPR_WIN32
 #include <tchar.h>