Can build with epub disabled

Added the required preprocessor directives to make building without epub support possible.