since u started bitcoind with "bitcoind" and not the one you did built.
if you use bitcoind with parameters it changes to a simple JSON request/response tool. for example u could use
namecoind -rcpport=8332 -rpcuser=rpcuser -rpcpassword=rpcpassword getinfo
to query bitcoind with the namecoind binary.
therefore stop bitcoind, uninstall the package u installed (or the old binary if u compiled/copied it on ur own) and copy bitcoind to /usr/local/bin, afterwards restart bitcoind with
bitcoind -upgradewallet