fix asserts to enable run-time-reloading

* this allows us to reload a kernel / program on-the-fly
* tested on OS X, works
* needs testing on windows

Signed-off-by: tgfrerer <tim@poniesandlight.co.uk>