Build fixes and better coveralls integration