What you didn't mention is that you are building a project for Harmattan now (either on purpose or by accident) and your Harmattan SDK files just might be out of date. Install the latest Qt SDK and try again.