Fix missing includes

Last commit made defition of cpack() not available to files
which do not include openlibm.h.