update test script, compile libncuresw