Compile with -KPIC instead of -fPIC when on Sun Studio
Fix compilation problems on OS X Mavericks. Should fix issue #950