Make AVR specific code conditional

- This patch check for the AVR defined symbol __AVR and conditionally
includes avr/pgmspace.h depending on it.
- A define for strncasecmp_P set to strncasecmp was added for non-avr platforms to take
care of the missing function.
Merge pull request #2 from robertinant/master

Make AVR specific code conditional