Changed build system to supposedly work on Red Hat systems