Fixes a couple of issues with "already defined" constants from phpseclib.