Cross platform compatibility fix.
Cross platform compatibility fix.