Added global variables and fixed includes of files in the runtime library folder.