Fix missing includes

Last commit made defition of cpack() not available to files
which do not include openlibm.h.
Merge pull request #48 from JuliaLang/cpack

Fix missing includes