Fixed reading both shared libraries un unix and win32