removed hard-codded paths in linker library detection; replaced with fancy auto-detection