fix a bug in build system which does not load all depended frameworks

http://hipbyte.myjetbrains.com/youtrack/issue/RM-97