stfl: fix cross-compile, clean up template