Use ct_alloc_fnode() in ct_extract_file. Closes #19 .

ct_alloc_fnode sets up some initial state in the structure which was
missing here causing some unusual behaviour. Bug reported by Todd Fries.