Fix compile errors
Also enable ido in "read-file-name" and "read-directory-name"