fix ocaml OM_LDFLAGS inheritance