Enable optimized builds
Fix segfault upon alloc failure