created library loading section in main method, this allows for the
program to now be run on the 3 target OS's with the libraries placed in
the folder 'lib'