I have no idea why the code you've posted is expecting Pub.win32 and BRL.Win32MaxGui. Does it compile OK if you take them out?
When I run FA against
it returns :
or
You can then use the compiler directives to make the code x-platform
When I run FA against
Framework itspeedway.test Import brl.max2d Graphics 800 , 600 SetBlend(ALPHABLEND) DrawText( testmodule(), 0,0 )
it returns :
Framework BRL.GLMax2D
or
Framework BRL.D3D7Max2D
You can then use the compiler directives to make the code x-platform