Add proper define guards

Signed-off-by: Alberto Corona <alberto@0x1a.us>