malloc: override 'new' and 'delete' globally