fix ram location in loader script; fix assembly compile options