Birmingham har skrevet en kort kontrakt med det kroatiske evighedstalent Alen Halilovic, der forlod AC Milan på transfervinduets sidste dag.