compile api file with debug info and don't use export_all