build system: link against qtcore instead qtwidgets

Change-Id: I1acefd31a39105791f509cc2019c43277c439daa