Remove deprecated messages
Fix warning in msvc11 (UINT32_MAX is already defined)