Support for library amalgamation, fixed missing inline keyword