read up at
https://community.openvpn.net/openvpn/wiki/WikiStart
section 'Getting OpenVPN' on how to build OpenVPN.
The Windows build process is quite similar to the Linux process, except for the tap-win32 driver; if you need to rebuild that driver then additional software and perhaps an official code signing cert are needed (which costs $$$)