adjust find modules to support static as well as dynamic libs