Allows multiple global variables to be exported.

fixes #152 and #153