Avoid division by zero
Default: compile statically (to avoid boost::serialization bug for versions >=1.44)