Added small improvements to use internal flash memory in stm32f1XX

Please merge it. It is needed by an example I want to commit: https://github.com/millerd/libopencm3-examples/blob/master/examples/stm32/f1/stm32-h107/flash_rw_example/flash_rw_example.c