add missing endif in cmake
add preliminary support for cpack
add octave target to travis builds