more compiler fixes

Hello @x-ma, 

Please review the following commits I made in branch 'nick-compiler'.

eff90a785a6d36523dd5dfe4ec1c3d7bedc7427d (2014-03-26 11:04:57 -0400)
more compiler fixes

R=@x-ma