stop installing empty .so files

Closes #4468