Some c++ compability and externed variables