bugfix: fix cmake static linkage option.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>