Rolling back: Add a kludge to fix building shared libs