Features/build pic

Added CMake option to build position independent code.