Use cmake's POSITION_INDEPENDENT_CODE property
fix for issue #1768