fixed compilation issues in go1