enable SSE2 instructions
fix some gcc warnings