Some warning corrected and glm optimization flags #11