Weak linking fixes

Fixes issues running debug & release builds of apps without Lagrangian present.