Fixing build errors for travis