Try
Code:
{$apptype gui}
in your main Pascal file.