Detect "styles" library and use it if present.

#150