Fix library names in server and plugin builds