fixed cookie parsing (memory mgmt bug)
fixed autotools build fail