Fixed -fPIC inconsistency, added missing sources.