no-graphics build option

Signed-off-by: Leo Bärring <leo.barring@gmail.com>