fixed build for rpm packaging