Fix 'unknown pragma' warnings with MSVC 9

#pragma detect_mismatch is only supported since MSVC 10.
Merge pull request #43 from Lastique/patch-1

Fix 'unknown pragma' warnings with MSVC 9