fixed compilation on platforms with a conforming standard library.