Fix loading of extensions and change compilation of dynlink_wrapper with optcomp and ocamlbuild.pflag (thx @hhugo)