build type is not set explicitly anymore.
if c++11 check faild it give an error.
removed unused cmake option from viewer.