Asian stock markets close Thursday with gains