FITIn: makes Lua code compiling (64bit Linux)
FITIn: fixes bad error output
FITIn: fixes compiler warning for Lua wrapper
FITIn: fixes bad fread spec