optimalized builds for faster renders
fixed all compiler warnings