An investor has secured $19.4 million in financing in connection with an office building in Middlesex County and a second near Philadelphia, according to G.S. Wilcox & Co.