Fixed memscan compiler issues