include TargetConditionals.h for TARGET_OS_* def

https://github.com/rampantpixels/foundation_lib/issues/1
Removed unused variable