Fix several compilation problems
Add writer support long and unsigned long
Update travis-build