Inject libraries in /src/lib/core before injecting the rest of /src/lib/ and removed IIFE wrapper.