Fixing various issues related to package dependencies
Create install directory under the build tree