Since kokkos only compiles a static library, the -fPIC compiler flag is required to link kokkos into a Fortran executable