Added missing ref for compiling on Windows/g++