fixed make files for OSX and Linux. re-enabled dynamic lib building. cleaned up demo
added XCode Debug dir to .gitignore