enable tests when asserts are otherwise off
prevent unused variable warnings
enable clang compilation
restrict to mac target
fix warnings by using proper system includes