remove extraneous parens
name getline getline2 so that programs compiled on snow leopard will run on newer OS X
allow building without libjansson
changes to compile on windows