fix usage of RWMutex to compile
add comdlg32.dll to searched Dlls