async read/write functions in dynamic shared library