use c++ 11 mode of compiler if supported for better optimization