Fixed some bugs and allow project to have custom platforms.