Add compilation directives for building with mingw. Change-Id: Ied559b5f701272b8a429d775814f577d9f202a01