Fix QML menu appearing at wrong location on OS X.