Make sure we build in release mode with shared libraries.