Fix can't open files
Copy the game library when compiling
Add macro to check for not null variables