Removed the use of DWORD in icarus code, and also changed bad uses of long
to int - while there are no problems of using long in 64-bit builds for
Windows (as they remain 32-bit in size), other OSs expand long to 64-bits
under a 64-bit environment.
Corrected and improved error messages when a library cannot be found.