small typo fix, added check in cmake for gcc