build: Add '-fPIC' compilation flag (if available)

The flag is necessary (at least on Linux) if ndn-cpp-dev library is
linked somewhere else to become part of dynamically loading library.

Change-Id: I824f82cae3a4e779acaf78fd5e14fa7dff77536a