updated to compile on fedora