removed extern qualifier in definition of some variables. done in order to remove warning in gcc compilation