Trying to fix the issue of scanner not compiling on all platforms.