fix 0.4.0 compilation errors.
add travis status.