Fix a compilation issue with VS10.

This fixes two small compilations issues with VS10.