Fix #1358: Broken thread support with OCamlVersion >= 4.00