cmake: add static library build