Moved LineStyle enum decl into an own file.
Enable optimization explictly as this will workaround the enum problem.