nx/CMakeLists.txt: Link with lz4
nx: Use windows.h if building on MinGW
Refactored code into more functions

Signed-off-by: retep998 <retep998@verizon.net>
Fixed bitmaps using an alternate source.

Signed-off-by: retep998 <retep998@verizon.net>