Added linkage with libmemory library in order to get proper memory stats.