cmake: Use POSITION_INDEPENDENT_CODE target property.

For convenience libraries, instead of mucking about with compilation
flags.

Suggested by Chad Versace on Waffle mailing list.