add a throwing overload of dynamic_library::open