static package mode fixes, dynamic is broken for most setups due to temporary ocamljava limitations