Fixed fPIC link failure with arm and sparc architectures, fixing issue #757
Added TargetArch.cmake, from
https://github.com/petroules/solar-cmake/blob/master/TargetArch.cmake