Check required PHP extensions

Add checking required PHP extensions (mstring and OpenSSL), especially on Windows.