Fix compile error for std::max on 32bit systems

- unexpected comparison for `max(int64_t, long int)`
Add same fix for ParallelDomainCollector
Merge pull request #3 from ax3l/fix/32bit

Fix/32bit