Dynamic library loading stack for abstracting function interfaces