Various changes
add hardware accel flag