New functions

* num_cores
* die_unless*