main.h: Include limits.h for INT_MAX
Fix typo FILE -> FILE_T
Merge pull request #189 from doughdemon/master

Make it compile with musl libc