fix configuration, includes and libs