Fix compiler factory and add newInstance method on web request