Refactor win32 makefile to build four libs before linking