Ferdinand Maria supported the wars of the Habsburgs against the Ottoman Empire with Bavarian forces ( 1662-1664 ) . Ferdinand Maria supported the wars of the Habsburg against the Ottoman Empire with Bavarian auxiliary forces ( 1662-1664 ) .