Updated to load the foundationdb library dynamically.