kmfl does not support Keyman Version 8. Changing the version to 7 does allow kmfl to load Hieroglyphic.kmx. I have no idea if it is working correctly.
I think the problem is with the line c \ kmfl may be treating the backslash as an escape character. Changing c \ to c backslash allows the keyboard to work correctly.
Unfortunately there is no way to go from a kmx file to a kmn file. A kmx file has been compiled from a kmn file using keyman developer. You would have to ask the author of the kmx file to provide you with a kmn source file. kmflcomp is not really needed unless you wanted to test for syntax errors in your kmn keyboard. When kmfl was first developed, kmfl could only load keyboards precompiled with kmflcomp. Fairly early in the development, a feature was added where kmfl could compile a kmn file on...