Use malloc_trim only on linux
This is not the correct fix but a temporary one, this allow us to compile on freebsd while a better fix is in the works.
This is not the correct fix but a temporary one, this allow us to compile on freebsd while a better fix is in the works.