add headless possibility

Change-Id: I05eb763f0b8d8c97ceccc7bb2db2086c04ffa92b
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>