Be stricter when checking if java.awt.Desktop is supported