modified configure to check .so libraries