General Fixes

* Fixed XLIB freezing, the display needed to be flushed in order for the regain focus event to be processed, we aren't doing anything during usleep anyway.
* Fixed working_directory, the plugin now passes a regular file path, if the length is larger than 0 the compiler will format it and give it to the game, inside the main() of all platforms the working_directory is checked to be of 0 length and if so replaced with the executable working directory provided by the operating system. This is the exact behavior of GM8.1 and properly gives you the temp directory when the project has not been saved form the IDE.