finish makefile

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix datadir and libdir in source files when building

Signed-off-by: Mattias Andrée <maandree@operamail.com>
forgot to include __main__

Signed-off-by: Mattias Andrée <maandree@operamail.com>