Build problems on Fedora

These two patches will fix some of the problems preventing this package from compiling. There is also I problem where files are installed to `/`, but I haven't been able to narrow that one down.