Patch for linux compilation

This makes ccl compile properly on my mac and linux vm, and presumably will work on windows (though, not tested).