Might be due to the include instead of include_once statements used in different parts of the library? Even just including phpseclib in a project which doesn't use it causes it to fail due to this constant.