use correct version of javascriptcoregtk when compiling
simplify X11 check