stm32l: make Makefile smart enough to detect cross-compiling