deprecated LibraryFunction, fixed GCC build