Fix compilation issue Math not found on some JDKs.