The altered pronunciation of 国 in 中国 is part of a phenomenon called rendaku. To summarize the article, if a word is written in kanji, you cannot know for sure whether rendaku occurs or not; there is no hard rule that covers all the cases. You just have to learn it word by word - you can guess based on common patterns, but may still be surprised when turning to a dictionary for confirmation. For example with 忠告, even though the individual characters have the same readings as 中 and 国 respectively, it's pronounced ちゅうこく, not -ごく.
On the other hand, "...ku" followed by "k..." turning into "...っk..." (as in がく + こう -> がっこう) is a quite common and predictable pattern which simply makes the word easier to pronounce. Other examples include 突っ込む (つく + こむ -> つっこむ) and 却下 (きゃく + か -> きゃっか).