I have an update on this: I managed to get version(Win32) to work by adding a case in d/target-ver-syms.sh for "pe". While I was at it I noticed the target cpu list, and add in a case for "arm" that makes version(ARM) work. version(Windows) is still broken though. edit: I managed to get version(Windows) to work as well.