Fixed some compilation bugs that occured when ASAGI is turned off