Revert "Removed GLOBAL_LDFLAGS optimization flags due to an error with linker at compilation"

This reverts commit 59c50489768baf84906579c47e2ada7f70e69820.