simplify the build by embedding functions as we do not need external compilation and dynamic loading after #69.