Fix test build on linux.