Not a solution for your problem (sorry about that), but a question:
Why do you need to build Qt statically?