Minor compilation issues with VS