Fix build on linux2