Make stm32flash work in Linux as well. Fixes to Makefile and serial flushing.
Merge pull request #1 from nakedible/master

Make stm32flash work in Linux as well. Fixes to Makefile and serial flushing.