Changed to show detailed package build error message.
Fixed build bug of inherited package.