Fixed problem with set_linebuf (returns int on OSX but void on Linux) and made array packing optional with -DDONT_PACK