Wikitree doesn't show a 1st cousin relationship because you don't share any grandparent profiles. Do John Alexander-11338, his grandfather, and John Hamilton Alexander-1071, your grandfather, represent the same person? If so, they need to be merged, then your 1st cousin relationship will appear.