cmake: build kmsplugin library using cmake

Change-Id: I2496031a390851ded8d8d00cb48ecb4c83166152