fixing build issues
modified open_file() to read file into memory in chunks. with this change, named pipes can be used  with fm_search