bsc-stdlib-polyfill This code is adapted slightly from https://github.com/ocaml/ocaml/tree/trunk/stdlib