Replace -compile(export_all). with proper API exports

Cosmetic changes to -import(...). to avoid confusing indentation
engine.