Check _GNU_SOURCE before using get_nprocs.
The latter function is not POSIX, but a GNU extension and therefore not available universally.