Revert "use global path to the lib in examples"

This reverts commit 01f316dbd240e0447acaa4ee3ef7172c58f6852f.