Compatibility with Fedora packaging standards

This modification is to add PIC compilation flag when the system building the application is a Fedora distribution. 
This address the comments in issue #2615