This fixes the issue with certain compilers that have int set to different sizes by either explicitly casting or setting templates manually