This should be pretty trivial, but in case (like me) you're using cmake, I found (with cmake > 2.8.11) that using find_package(Qt5PrintSupport REQUIRED)
and then target_link_libraries(${TARGET} <other libraries> Qt5::PrintSupport)
worked to add that library to the build for QCustomPlot.