[server/test] Fixed the build error on Ubuntu 12.04.