Fix #109.
Fix #109.

Also, do not generate callable entry points if compiling as a module.

diku-dk/futhark,ihc/futhark,mrakgr/futhark,mrakgr/futhark,HIPERFIT/futhark,CulpaBS/wbBach,HIPERFIT/futhark,diku-dk/futhark,HIPERFIT/futhark,mrakgr/futhark,diku-dk/futhark,ihc/futhark,diku-dk/futhark,ihc/futhark,diku-dk/futhark