updating to use static libraries correctly