Merge pull request #112 from evoskuil/version2

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