Fixed the example failing to find the example files in the new directory structure

+ Fixed a GCC unused variable warning in example1