Move the expat dependency to the library