Updated for new name mangling, added compiler flags