support compiling with either sdks 7 or 8