[loadfile] don't read files > 2GiB
[loadfile] move constants to static const and align chunksize with file chunk size
[loadfile] reduce scope of tempinputBuff
[loadfile] no need for reusing inputBuffSize for return value
[loadfile] ensure inputBuff is free'd in case we fail to read any data
[loadfile] free over-allocated memory from growing buffer
[loadfile] improve log message
[loadfile] Replace moved code in Texture.cpp with function call
CXBMCTinyXML: use direct file reading instead of streaming.
That way we could avoid double parsing of file.
XBMCTinyXML: remove old workaround