add cmake_minimum_required(VERSION 2.8) in root CMakeLists.txt to make CMAKE_FOR_WIN32 pass configure