Corrected case error.  Added *.so.*.
Corrected cast of 32-bit int to 64-bit pointer

-- Corrected portability issue.