Revert "Updated compiler flags on Makefile.am."

This reverts commit 840c013ae4fe4aa67a821b399441945fc3ed42e0.