CLOUDSTACK-7313 Fixed issues in provisioning vpx in SDX from CS
Fixed Resource Leaks

Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
CLOUDSTACK-7469 Complete simulator build support

The initial commit (f96c65416a2802bcf2a1f8d5a5070ffe6a29111f) missed part of the change to package.sh, so we were not actually passing through the simulator build option to the rpmbuild call. This patch completes the support.
fixed NPE on calculating vm snasphot volume size