Autodetect and define PIC

We currently use defined(PIC) in ARM assembly, but we don't actually make sure that PIC is defined when building the assembly, if __PIC__ is predefined by the compiler in the current setup.