Changed the #ifdef __linux__ parts to the use of the lc_get_heap_used_bytes() function.