checked for incorrect return value for chdir for deps
correctly handle pkg-config in dependency builds
tweaked version control mechanism and changed default shared library output suffix from .so.0 to just .so