Fix tests under Windows by creating the codegen object after mapping the C math functions (!)