After doing some searches I found that nmem_ attribute doesn't exist anymore in newer jasper libs so I think it would be a good idea to either comment out this line in future versions or specify that it is important to use jasper 1.7 ant NOT 1.9 or 2.0.

Commenting the line actually worked for me and ungrib.exe was created.