This doesn't fix all the build problems. The next one is that both <caml/config.h> and <tiffio.h> define a type called 'int64'. I'm going to bother OCaml upstream about this and try to get it fixed, but even if successful that will take a long time.