Fix 'rake compile' not detecting changes to files
Fix Window class const correctness