[Bug 812059] Build as standalone script gives error