update to sdk 18 + remove warnings

- updated to sdk 18 + updated support library
- removed unsused private functions
- fixed deprecated functions by wrapping them in functions that perform an api check