Add several fixes regarding ngsi_event_broker compilation on different Linux distros

#### Reviewers ####
@flopezag