Changed the order of some build instructions
Pass compile options via env. variables