Fixes compilation errors by loading classpath resources independent of Spring