Allocate whole struct in one malloc() call