Merge pull request #47 from evoskuil/version2

Integrated build script (static/shared/buid-dir/osx).