Changes to make orc lib compile in windows.

Hi Folks. 

This change is to make native orc compile in Windows Visual Studio 2010. It contains:

- changes to CMakeLists file so that cmake now can generate a solution file for visual studio
- revert some C++11 features to make the library compile in VS10
  + e.g., default and delete keywords
  + for each
- add parenthesis around std::min/max to avoid conflict with windows predefined macros.