Fixed compile error on 64bit.
Modified timer to return correct msg to API when connect times out.