rtapi/heap: build support in hal/lib/Submakefile
rtapi/heap: build support in hal/lib/Submakefile

the heap routines do not go through rtapi_switch since technically
they work with any memory region; the global heap needs the global segment
though and will work only after hal_init() when used from the HAL library.

Also, fix useless profiling definitions.

bobvanderlinden/machinekit,unseenlaser/machinekit,kinsamanka/machinekit,strahlex/machinekit,bobvanderlinden/machinekit,mhaberler/machinekit,ArcEye/machinekit-testing,unseenlaser/machinekit,mhaberler/machinekit,strahlex/machinekit,ArcEye/MK-Qt5,ArcEye/MK-Qt5,strahlex/machinekit,EqAfrica/machinekit,mhaberler/machinekit,RunningLight/machinekit,EqAfrica/machinekit,Cid427/machinekit,EqAfrica/machinekit,ArcEye/MK-Qt5,Cid427/machinekit,bobvanderlinden/machinekit,mhaberler/machinekit,kinsamanka/machinekit,RunningLight/machinekit,unseenlaser/machinekit,EqAfrica/machinekit,Cid427/machinekit,Cid427/machinekit,unseenlaser/machinekit,RunningLight/machinekit,araisrobo/machinekit,ArcEye/machinekit-testing,EqAfrica/machinekit,bobvanderlinden/machinekit,mhaberler/machinekit,ArcEye/machinekit-testing,ArcEye/MK-Qt5,strahlex/machinekit,ArcEye/machinekit-testing,bobvanderlinden/machinekit,Cid427/machinekit,EqAfrica/machinekit,RunningLight/machinekit,ArcEye/machinekit-testing,strahlex/machinekit,RunningLight/machinekit,kinsamanka/machinekit,ArcEye/MK-Qt5,ArcEye/machinekit-testing,mhaberler/machinekit,araisrobo/machinekit,bobvanderlinden/machinekit,ArcEye/MK-Qt5,araisrobo/machinekit,strahlex/machinekit,ArcEye/MK-Qt5,kinsamanka/machinekit,mhaberler/machinekit,Cid427/machinekit,araisrobo/machinekit,ArcEye/machinekit-testing,araisrobo/machinekit,strahlex/machinekit,araisrobo/machinekit,RunningLight/machinekit,araisrobo/machinekit,kinsamanka/machinekit,mhaberler/machinekit,kinsamanka/machinekit,bobvanderlinden/machinekit,Cid427/machinekit,EqAfrica/machinekit,RunningLight/machinekit,RunningLight/machinekit,kinsamanka/machinekit,ArcEye/MK-Qt5,ArcEye/machinekit-testing,unseenlaser/machinekit,unseenlaser/machinekit,araisrobo/machinekit,unseenlaser/machinekit,EqAfrica/machinekit,Cid427/machinekit,unseenlaser/machinekit,kinsamanka/machinekit,bobvanderlinden/machinekit,araisrobo/machinekit