Fix some minor linking issues.
- Avoid possible double free when using tifiles_file_read_*.
- Longer delay for better reliability when "manually" pressing keys.
Again these are changes that have been sitting around for a while and I neglected to commit them.
Authored by: floppusmaximus 2016-10-22
Parent: [r757]
Child: [r759]