fix 3c64c04a3fec1150571b0483911410e5dbb3a86f

add cmake macro MakeGlobalVar:
- workarround for broken set(... PARENT_SCOPE)
- fix warning (unused var)
- remove springserver-static (its not shared!)