run-with-qapplication: use define-external for argc pointer

This ensures that the garbage collector will never touch this pointer.