Handle CSR permissions correctly
Build and use shared libraries