Fixed compile errors in guice and cdi modules. Added support for
annotation based configuration with @Configuration in spring module.