cpu/stm32f1: fixed gpio driver

- changed #ifdef to #if for device filter
- guarded file in case no GPIO device is defined
- added guards around interrupts
Merge pull request #1752 from haukepetersen/fix_stm32f1_gpio

cpu/stm32f1: fixed gpio driver