Fixes build so that it works on most targets, instead of just building towards L which is default.

Also fixes material theme since obviously nothing below L uses material