Move -Wno-unused-local-typedefs to gcc-specific makefile.
Add a failsafe and improve main 2d poisson solver.