split libraries in configure script