STM32F303K8 Pin change

I'm using the STM32F303K8 Nucleo board. It has Nano output pins. I need to use A4 and A5 as analogue inputs, but from what I've managed to read they seemed to be mapped to either I2C or SPI. I've removed the jumpers SB16 and SB18 but they still do not work as analogue inputs. Even tried to make them GPIO outputs, but that didn't work either. Is there a way to make them conform to analogue inputs. If I use the same board on MBed they work as analogue in.

On a related issue the files on GitHub at STM32duino. They are linked on 'Preferences' 'Board Manager URL's'. How could I use a changed version of these files with the Arduino IDE?