I suggest you to set and try these compilation flags inside the Makefile (credits to CastagnaIT and Stratosk)