redhat 5: cmall build scripts fixes