fix Issue 10676 - excessive compilation times with optimized PIC build

fix http://d.puremagic.com/issues/show_bug.cgi?id=10676