Added device change detection capability in Windows

Ignore-this: ebae82bea77925e3bc90cbd0f16a1145

Credits go to Bruno Gonzalez (bruno@stenyak.com)

darcs-hash:20100816085841-56b4d-1d8ef74812d247c44b937575129ca341eeda8344