DooMLoRD: added optimizations for compiling (thanks to @franciscofranco)

commit 21ec7e57d36d2047496e3027cb00f3f960465c7d