build: use cmake to build plugins

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>