clean up build script
fix travis
inline vtable function definition