specify static libraries before dynamic when linking