fixes small compilation issues
function to get number of cpus
plenty of new things for GPs; very simple version is working