riot_and_cpp: do not link on build tests for stm32f0discovery

Fixes #2203