workarounds for linux

with these changes I'm able to build nupic (builds nupic.core too) and all tests pass! :+1: