Update to wx3.0, add SSE optimizations based on target_cpu, fix compile warnings