reduced lib size by optimizing compilier settings