Fixed a building issue on Windows and Linux.