re-enabled dsym generation
tweak for thread safety