win: Fixes stopping FlashFrame, closes #906
linux: Fix building