moved common functions in util.h
updated makefile to work with recent vdr build system
implemented basic support for native (non-sms style) editing