Avoid recompilation of the library.

Made the example executable depend on the library,
avoiding the recompilation.