all: Use the openFile fopen wrapper from gfile.h

Use the openFile wrapper instead of calling fopen directly
in the libraries.
12 files changed