fix #1414 - compiling mongo extension

disable strict aliasing just for one function