Compile fixes, added license files and alternative win32 file change notification.

See commits included for details.