More compilation fixes. Enabled -fPIC.