Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -412,6 +412,11 @@ macro (force_release_build)
     endif ()
 endmacro ()
 
+check_include_file_cxx (stdint.h HAVE_STDINT_H)
+if (HAVE_STDINT_H)
+    add_definitions (-DHAVE_STDINT_H)
+endif()
+
 # Put all executables into the same top level build directory, regardless of
 # which subdirectory they are declared
 set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
