Use dlmalloc on all OSes and allow early initialization
Fix Script byte array and heap block leaks