Added export macros for the library and thread objects