added *.so and examples/ to .gitignore
fixed compilation of examples
added a couple more compilation instructions