The flat spot on the motor shaft really isn't necessary, just crank it down with a hex driver and you should be good. As far as an opening on the back of the motor, I usually just cover it up with electrical tape around the wires.
For the front i'm not sure what you should do though. They all seem like reasonable solutions