Fix build on Linux with older glibcs