Restore visibility flags, change --enable-debug, add a testnet build.