Remove unused glob.h include.
Avoid unused variable warning on non-Windows platforms.
Add build system.