Fix order of library in cmake to fix Windows build.