Fixed compilation issues for VS11 64 bit