Use different def file for windows < 5.1. (cherry picked from commit 57d295441fb2d7d1cb4264ab57aa244799b9198f)