Split source fml.c and define relevant build-in functions in separate