Fixed the build errors with name_server