correct build on platforms that require PIC objects (bug #4179)