Updated library to use dynamic linking