include config.h before usage, fixes SLEEP_MODE_IDLE problem