fixed the stats-at-exit for linux, currect defines are used now