Fixed dependencies so that the dependent libs go to the distribution, fixed nsh.bat script