Use old syntax of connect to work around with GCC 4.7.
Dynamically allocate addprofiledialogue object.

Fix add profile dialog position problem on X11 platforms.
Reduce RAM consumption since add profile dialog would be released
automatically.