Fix compile issues on i386
Automatically get full path to library