Changed the way the static embedded library is searched