Switch to -O3 flags for Linaro toolchaings
hack to all headphone detection, compliments of thicklizard