Add some compiling optimizations

Signed-off-by: Josue Rivera <prbassplayer@gmail.com>