define load_library to mimic the ctypeslib.load_library