I have recompiled the new code but now I have serious problem.
I restarted the client, I had some network connections (about 6) but the client was no more able to add new blocks and I was stuck at the last block I had in the database.
For this problem my delegates started to create forks as you can see in this one:
 10418
     2e4b78625a321f183b8de35ae29c0f50b779e6ba                       vikram9              0       182 2014-07-04T08:23:15      1269     YES                 YES
     6c2c9d95b9a3aef9699e376759784a460d8d1a5d                     spartako4              0       182 2014-07-04T08:27:15      1030     N/A                  NO
Now I disabled my delegates so they will miss all blocks until I am able to recover from this problem.
I tried also to remove the chain/ directory but now I am stuck at block 0
default (locked) >>> getinfo
{
  "blockchain_head_block_num": 0,
  "blockchain_head_block_age": "16 seconds old",
  "blockchain_head_block_timestamp": "20140704T085945",
  "blockchain_average_delegate_participation": 0,
  "blockchain_blocks_left_in_round": 101,
  "blockchain_confirmation_requirement": 202,
  "blockchain_share_supply": 199999999981923,
  "blockchain_random_seed": "0000000000000000000000000000000000000000",
  "blockchain_database_version": 109,
  "blockchain_version": 104,
  "network_num_connections": 6,
  "network_num_connections_max": 200,
  "network_protocol_version": 104,
  "ntp_time": "20140704T090001",
  "ntp_error": -0.0035049999999999999,
  "wallet_open": true,
  "wallet_unlocked": false,
  "wallet_unlocked_until": null,
  "wallet_unlocked_until_timestamp": null,
  "wallet_block_production_enabled": null,
  "wallet_next_block_production_time": null,
  "wallet_next_block_production_timestamp": null,
  "wallet_version": 101
}
{
  "bitshares_toolkit_revision": "86dea979e9ccffb763edc8a2456408c9e116d85d",
  "bitshares_toolkit_revision_age": "8 hours ago",
  "fc_revision": "0fced2ddffb380572ed50c181e8496a9d8777a62",
  "fc_revision_age": "10 hours ago",
  "compile_date": "compiled on Jul  4 2014 at 10:12:56"
}
EDIT: I solved the problem deleting the entire ~/.BitSharesXTS and using the command wallet_create_from_json, now spartako delegates are back.