fixed build script on fedora

missing compile flags for date parser
dependencies are checked with rpm -q pkg_name
added dependency check for bzip2-devel and zlib-devel