AIFile bug fixes.

Compare with errno instead of rc.
Make sure errno is preserved.
Fix shadow dithering. It's still pretty ugly tho, but looks okay if ssao is enabled. May add random kern in the future.
AIAlert fixup.
Revert upstream change to particle index accounting. (Fixes flicker issues)
Merge branch 'master' of git://github.com/AlericInglewood/SingularityViewer
Merge branch 'master' of git://github.com/Shyotl/SingularityViewer
The rest of the french updates from Nomade Zhao