Use config file for global #defines

Arduino does not allow global #defines to control library behaviour,
therefore a config file was added which is included by the library.