Added some fixes and flags for LE port

Added additional flag for LE builds to activate some required compile
flags. Also fixed some checks that were failing on builds done with the
distro toolchain (AT toolchain was passing fine).