I got an error in last build attempt.
maxcoin.cpp: In function int scanhash_keccak(int, uint32_t*, const uint32_t*, uint32_t, timeval*, timeval*, long unsigned int*):
maxcoin.cpp:90:42: error: min was not declared in this scope
pdata[19] = min(max_nonce, n-throughput); // CB: don't report values bigger max_nonce