Detect platform; use info to set LPATH