fix debug/release linking of OSG