add visibility attribues to global variables

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>