Avoid functions only available in OCaml 4

Debian/unstable is still on OCaml 3.
Added TYPE and DEBUG options to build

Debian wants bytecode binaries with no debug symbols.