fix to link library problem (Thanks Nohal)