Compatibility updates for 5.3.5 and lower. Fixed usage of $this context in closure. Also updated autoloader to work on both linux and windows.