Fixed build issues for EF6 extension