GPU Calc: fix compilation failure on Windows due to missing NAN macro

Change-Id: I0d53dcf147a06f831120c5489b2975e42ea6120b