Added NR_WEAK and NR_UNRETAIND macros.
Added (some) thread safety to NRLogger. Now writing header to each file.