FIX: Worked around an incompatibility with gcc and NULL pointers using nullptr polyfill
RF: Changed NULL's to nullptr's in samples and tests