Fix export macro to not always export all symbols