update compileso.sh for correct compilation