fixed mistake with SDL compiling under Core target; fixed SDL cast warnings; added more Core classes