Added cmake support (Non MINGW only right now)