fixed make files for OSX and Linux. re-enabled dynamic lib building. cleaned up demo