fixed debian compliation issues

a minimal control.template are included. Though it is simple, it works.