Update examples for new PEC files

In addition, correct test/Makefile such that the path to Boost libraries
is no longer needed to be mentioned in $LD_LIBRARY_PATH.