Use of numeric_limits requires <limits> header
Replace mutex P and V with Lock and Unlock, per SDL2