fixed missing linker flag to libpthread for example programs.