Compile fixes, and allow application to run without being on the DOM