Fix build on Musl libc
malloc_trim is only implemented on glibc, so rather than checking if the OS is Linux and not Android, check if it's Linux and glibc.
malloc_trim is only implemented on glibc, so rather than checking if the OS is Linux and not Android, check if it's Linux and glibc.