I did exactly that, replace oldwinapi with winim and change some definitions around to make it work. I got it to compile after modifying the png package (replacing TFile with File), but I don't have a working png.dll to verify it works.
I also don't know enough about the PNG format/processing to gauge how hard it would be to port it to nimPNG but that would presumably remove the requirement for the dll.
Here is code that takes a screenshot on windows:
https://gist.github.com/treeform/782149b5fc938753feacfca43637aa90
Win32 api is nasty some times.
Oh that's really straightforward, nice!
I'll try to get a minute this weekend to send a PR over to nsu.
If you want to try it directly, you can pull from https://github.com/johnscillieri/nsu
I have no idea if there is a better way to create the PNG using Flippy, but it works for me on Linux and Windows.