Can build with epub support disabled

Added the required preprocessor directives to make building without epub support possible. Tested with both GTK2 and GTK3.