Fixes compile errors in gcc which do not exist in msvc

Usually the typename keyword is missing