when I add those two dll's to the folder where the .exe and all the other dll are
Were both of these DLLs compiled with the minGW compiler you used for your application? Are both of these DLLs the correct "bitness" (32 or 64). the same as your app?