Build actually works and fixed compiler warning