Fix for incorrect handling of empty lines in FTSimpleLayout
Added GL_LIBS and LIBM in demo LDFLAGS