cmake: fix for server build