removed useless mode param from FAfopen
changed FAIO around so that faio.h no longer needs to include StormLib.h
fixed some small memory leak issues