When you have libraries loaded at a global level the debug tools do not take this into account and report problems for undefined functions etc even though at run time it works fine. This also happens if you define the library at the app level rather than global level.